'use strict'
import React from "react";
//引入工具类
import {Select  } from 'antd';

class PageSize extends React.Component{
	constructor(props){
	    super(props);
	    this.state={

	    }
	}
	componentDidMount(){

	}
	handleChange(vaule){
		this.props.changePageSize(vaule);
	}
	render(){
		const Option = Select.Option;
	    return (
			<div className="select-pagesize">
				<span style={{marginRight:"10px"}}>{this.props.title}  :</span>
				<Select onChange={this.handleChange.bind(this)} style={{ width: 50 }} defaultValue="10">
			      <Option value="5">5</Option>
			      <Option value="10">10</Option>
			      <Option value="15">15</Option>
			      <Option value="20">20</Option>
			      <Option value="30">30</Option>
			      <Option value="40">40</Option>
			      <Option value="50">50</Option>
				</Select>
			</div>
	    )           
	}
}
export default PageSize;
